Dismiss

constructor(toDismiss: (UIViewController) -> UIViewController = { it }, animated: Boolean = false, completion: () -> Unit? = null)

Parameters

toDismiss

Determines the UIViewController to dismiss based on the provided parent viewController.

animated

Specifies whether transition should be animated

completion

Optional function to call when dismissal has completed